package ts;

import java.util.HashMap;

public class Scope {
	private HashMap<String, Integer> mapScope = new HashMap<String, Integer>();
	
	public Integer lookup(String id) {
		Integer index = mapScope.get(id);
		if (index!=null) {
			return index;
		} else {
			return 0;
		}
	}
	public void insert(String id, Integer index) {
		mapScope.put(id, index);
	}
}
